<?php
Zend::loadClass('Lead_EDO_Datatype_Real');

/**
 * Datatype for double
 * 
 * @package EDO
 * @subpackage Datatypes
 *
 */
class Lead_EDO_Datatype_Double extends Lead_EDO_Datatype_Real 
{
	protected $_SQLValueIsQuoted = false;
	
	function validate($validate)
	{
		$validate = floatval($validate);	
		
		if(is_float($validate) OR ($this->config['not_null'] === false AND is_null($validate)) )
			return $validate;
		
		return false;
		
		
	}
	
	
	
}